package cn.conchit.apccontroldemo.graph.canvas;

import cn.conchit.apccontroldemo.graph.po.Cmpt;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;
import java.util.concurrent.Callable;

/**
 * @author hetao
 * @version 1.0
 * @description: TODO
 * @date 2023/2/16 9:31
 */

@NoArgsConstructor
@AllArgsConstructor
@Data
public class CmptVertex {
    private Cmpt cmpt;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CmptVertex that = (CmptVertex) o;
        return Objects.equals(cmpt, that.cmpt);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cmpt);
    }
}
